<?php

namespace IDock\Insurance\HBIC\Request;

use IDock\Insurance\HBIC\Response\InsuranceOrderQueryResponse;
use IDock\Insurance\HBIC\Bean\BASEPART;
use IDock\Insurance\HBIC\Bean\CAR;
use IDock\Insurance\HBIC\Bean\CARSHIPTAX;
use IDock\Insurance\HBIC\Bean\CHANGEBASEPART;
use IDock\Insurance\HBIC\Bean\DEVICE;
use IDock\Insurance\HBIC\Bean\KIND;
use IDock\Insurance\HBIC\Bean\NOCAR;
use IDock\Insurance\HBIC\Bean\PERSONNEL;
use IDock\Insurance\HBIC\Response\CommonResponse;
use IDock\Visitor\ProposalStatusVisitor;

class InsuranceCheckQueryRequest extends AllHBICRequest
{
    public $requestType = 'A05';

    protected $comCode = '0101282001';

    protected $response = InsuranceOrderQueryResponse::class;

    protected $urlTip = '投保单查询';

    protected $resourceType = 'BXT';

    protected $methodName = 'queryProposal';

    /**
     * @var ProposalStatusVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        $param = [
            'methodName' => $this->methodName,
            'resourceType' => $this->resourceType,
            'baseInfo' => [
                'proposalNo' => $this->visitor->inquiryNo,
                'RISKTYPE' => '3',
                'queryType' => '0',
                'LicenseNo' => '',
                'VinNo' => '',
                'quotationNo' =>'',
                'SplitFlag' => '',
            ],
        ];

        return $param;
    }

    public function getStaffValue(&$comCode)
    {
        $comCode = $this->visitor->argc['comCode'] ?? '';
    }


}
